<?php

printf("%c",65);
printf("\n");

printf("%06d",6);// will print 6 with leading 5 zero
printf("\n");

printf("%06d",66);// will print 6 with leading 4 zero
printf("\n");

printf("%06d",6746);// will print 6 with leading 2 zero
printf("\n");

$a = 'hello';
$b = 'world';
$c = 'php';
$newVar = sprintf(" This is %s and %s in %s",$a,$b,$c);
echo $newVar;




